package com.huawei.crm.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author 罗华
 * @date 2022/12/6
 */
@Aspect
@Component
@Order(1)
public class AopDemoAspect {


    @Pointcut("@annotation(com.huawei.crm.aspect.AopDemo)")
    private void aopDemo() {
    }


    @After("aopDemo()")
    public void aopDemo(final JoinPoint joinPoint) {

        System.out.println("===================开始增强处理===================");
        System.out.println("方法结束后做增强!");
    }


}
